<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>WebGL Rich Text Editor Example</title>
    <style>
      body {
        font-family: Arial, sans-serif;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        background-color: #f5f5f5;
      }
      h1 {
        color: #333;
        text-align: center;
        margin-bottom: 10px;
      }
      p {
        color: #666;
        text-align: center;
        margin-bottom: 30px;
      }
      .editor-section {
        background: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin-bottom: 20px;
      }
      .editor-section h2 {
        margin-top: 0;
        color: #333;
        font-size: 18px;
      }
      #tinymce-editor {
        width: 100%;
        height: 300px;
        border: 1px solid #ddd;
        border-radius: 4px;
      }
      #editor-container {
        width: 100%;
        height: 400px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background: #000;
      }
    </style>
  </head>
  <body>
    <h1>WebGL Rich Text Editor Example</h1>
    <p>This page demonstrates the integration of a rich text editor rendered with THREE.js and WebGL.</p>
    
    <div class="editor-section">
      <h2>TinyMCE Rich Text Editor</h2>
      <textarea id="tinymce-editor"></textarea>
    </div>
    
    <div class="editor-section">
      <h2>WebGL 3D Rendering</h2>
      <label style="display: block; margin-bottom: 10px;">
        <input type="checkbox" id="show-textbox-checkbox" checked /> Show Text Box
      </label>
      <div id="editor-container"></div>
    </div>
    
    <div id="app"></div>
    <script type="module" src="/src/main.ts"></script>
  </body>
</html>
